package edu.hunan.cxb18.spring.anntation.advice;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author chenheng
 * @create 2020-03-22 10:04
 */
@Component
@Aspect
public class myAnntationAdvice {
    @Pointcut("execution(* edu.hunan.cxb18.spring.anntation.dao.*.*(..))")
    public void myPointCut() {}
    @Before("myPointCut()")
    public void before(){
        System.out.println("前置通知");
    }
}
